package com.haole.ecommercepay.profitsharing.service;

import com.alibaba.fastjson.JSONObject;
import com.haole.ecommercepay.profitsharing.entity.AddReceiverParam;
import com.haole.ecommercepay.profitsharing.entity.QueryOrderParam;
import com.haole.ecommercepay.profitsharing.entity.ReturnOrdersParam;
import com.haole.ecommercepay.profitsharing.entity.orders.OrdersParam;

/**
 * @author haole
 */
public interface ProfitsharingService {

    /**
     * 合单下单-JS支付
     * @param param
     * @return
     */
    JSONObject orders(OrdersParam param);
    /**
     * 查询分账结果
     * @param param
     * @return
     */
    JSONObject queryOrder(QueryOrderParam param);
    /**
     * 请求分账回退
     * @param param
     * @return
     */
    JSONObject returnOrders(ReturnOrdersParam param);
    /**
     * 添加分账接收方
     * @param param
     * @return
     */
    JSONObject addReceiver(AddReceiverParam param);
    /**
     * 删除分账接收方
     * @param param
     * @return
     */
    JSONObject deleteReceiver(AddReceiverParam param);
}
